package com.framework.file.mapper;

import com.framework.file.model.FileManage;
import com.framework.file.param.FileManageParam;
import com.framework.file.vo.SysCompanyVo;
import com.framework.file.vo.SysDeptVo;
import com.framework.file.vo.SysUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;


/**
 * @description: 档案管理 Mapper
 * @author: lizurong
 * @version: 1.0
 * @date: 2021-04-01 16:53:14
 */

@Mapper
public interface FileManageMapper {
    Page<FileManage> listPage(@Param("param") FileManageParam param, PageRequest pageRequest);

    SysUserVo getByUserId(@Param("userId") String userId);

    SysCompanyVo getCompanyById(@Param("id") String id);

    SysDeptVo getDeptByComId(@Param("companyId") String companyId);

    List<SysDeptVo> getSysDeptListByComId(@Param("companyId") String companyId);

    List<FileManage> getFileManageComList(@Param("loginComId") String loginComId);

    List<FileManage> getChildTreeNoFile(@Param("id") String id);

    List<FileManage> getChildTree(@Param("id") String id);
}
